﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SusuCMS
{
    public class PageRepository : RepositoryBase, IPageRepository
    {
        public PageRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { }

        public IQueryable<Page> FindAll()
        {
            return _CmsDataContext.Pages;
        }

        public void Add(Page entity)
        {
            _CmsDataContext.Pages.Add(entity);
        }

        public void Remove(Page entity)
        {
            _CmsDataContext.Pages.Remove(entity);
        }
    }
}
